<template>
  <view class="confirm_page">
    <view class=" _w-max _top _left _z-index-5 _pos-fixed _top _left" style="background-color: #4C91FA;">
      <view :style="{ width: '100%', height: recHeight }"></view>
      <view class="felx_c h_96 f_s_18" style="position: relative;height: 96rpx;color: #FFFFFF;">
        <view @click="back" style="position: absolute;left: 24rpx;top: 24rpx;">
          <image style="width: 48rpx;height: 48rpx;"
            src="https://taxi.raxan.xyz/wechat/static/images/store_detail/a-chevron-left.png" mode="" />
        </view>
        订单确认
      </view>
    </view>
    <view class="top_bg">
      <view style="background-color: rgb(76,145,250);">
        <view :style="{ width: '100%', height: recHeight }"></view>
        <view class="_w-max" style="height: 96rpx;"></view>
        <view style="height: 72rpx;"></view>
      </view>
      <view style="height: 384rpx;background: linear-gradient( 180deg, rgb(76,145,250) 0%, #F5F5F5 100%);"></view>
    </view>
    <view :style="{ width: '100%', height: recHeight }"></view>
    <view class="_w-max h_96" style="height: 96rpx;"></view>

    <!-- 主体内容 -->

    <view class="container">
      <view class="desc">
        <view style="height: 96rpx;">
          <image src="https://taxi.raxan.xyz/wechat/static/images/co_head_bg.png" style="width: 100%;height: 100%;"
            mode="" />
        </view>
        <view class="board">
          <view class="row_1">
            <image class="thumb" :src="order_info.pic" mode="" lazy-load="false" binderror="" bindload="" />
            <view class="info">
              <view class="name">{{ order_info.type_name }}</view>
              <view class="params">
                {{ car_info.seat_num }}座/{{ car_info.door }}门/{{ car_info.gear == 'auto' ? '自动挡' : '手动挡' }}
              </view>
            </view>
          </view>
          <view class="row_2">
            {{ car_info.place_title }}
            <image class="arrow-right" src="https://taxi.raxan.xyz/wechat/static/images/arrow-right_black.png" />
          </view>
          <view class="row_3">
            <view class="time_info">
              <view class="tag">取车</view>
              <view class="time">{{ DateTimeSite.starMon }}月{{ DateTimeSite.starDay }}日 {{ DateTimeSite.starTime }}
              </view>
            </view>
            <view class="days">{{ orderTime.differ_day }}天</view>
            <view class="time_info">
              <view class="tag">还车</view>
              <view class="time">{{ DateTimeSite.endMon }}月{{ DateTimeSite.endDay }}日 {{ DateTimeSite.endTime }}</view>
            </view>
          </view>
        </view>
      </view>
      <!-- 押金 -->
      <view class="yajin">
        <view class="sub_title">车辆押金+违章押金</view>
        <view class="table" style="margin-bottom: 32rpx;">
          <view class="table_row">
            <view class="table_col">
              <view class="table_label">车辆押金</view>
            </view>
            <view class="table_col" style="color: rgba(0,0,0,0.6);">
              ￥{{ order_info.deposit }}
              <text v-if="order_info.deposit == 0"
                style="color: #FF5700;font-size: 28rpx;margin-left: 8rpx;line-height: 44rpx">免收</text>
            </view>
          </view>
          <view class="table_row">
            <view class="table_col">
              <view class="table_label">违章押金</view>
            </view>
            <view class="table_col">
              <view class="weizhang">
                <view class="line"></view>
                <view class="wz-item">
                  <view class="wz-title">取车前</view>
                  <view class="wz-content">￥{{ order_info.illegal_deposit }}</view>
                </view>
                <view class="wz-item">
                  <view class="wz-title">还车30天后</view>
                  <view class="wz-content">无违章全退</view>
                </view>
              </view>
            </view>
          </view>
        </view>
        <view class="sub_title">免押时间</view>
        <view class="gray_line" style="margin-bottom: 32rpx;">取车前可在订单详情页完成免违章押金认证</view>
        <view class="sub_title">免押方式</view>
        <rich-text :nodes="order_info.deposit_free"></rich-text>
      </view>
      <view
        style="background-color: #FFFFFF;padding: 32rpx;border-radius: 16rpx;padding-bottom: 0;margin-bottom: 20rpx;">
        <view class="sub_title">其他信息</view>
        <view style="height: 112rpx;position: relative;">
          <image src="https://taxi.raxan.xyz/wechat/static/images/co_sjczr.png" style="width: 100%; height: 100%;" />
          <view class="other_text" style="right: 0;padding-right: 56rpx;" v-if="contact_name">
            {{ contact_name }} {{ contact_phone }}
          </view>
        </view>
        <view style="height: 112rpx;position: relative;" @click="toRemark">
          <image src="https://taxi.raxan.xyz/wechat/static/images/co_remark.png" style="width: 100%; height: 100%;" />
          <view class="other_text" v-if="remark">{{ remark }}</view>
        </view>
      </view>
      <view style="background-color: #FFFFFF;padding: 32rpx;border-radius: 16rpx">
        <view class="sub_title">费用明细</view>
        <view class="sub_title1">租车费用</view>
        <view class="flex_bwt">
          <view class="gray_line1">车辆租赁费及门店服务费</view>
          <view class="back_line">¥{{ order_info.base_service_fee }}</view>
        </view>
        <view class="flex" style="overflow-x: auto;">
          <view style="flex-shrink: 0;" class="date-item" v-for="(item,index) in order_info.date">
            <view class="date-top">
              <text>{{item.date}}</text>
              <text>{{item.weekday}}</text>
            </view>
            <view class="price">￥{{item.price}}</view>
          </view>
        </view>
        <view class="flex_bwt">
          <view class="gray_line1">基本保障服务费</view>
          <view class="back_line">
            ¥{{ order_info.security_service_fee_day }}*{{ orderTime.differ_day }}=¥{{ order_info.security_service_fee }}
          </view>
        </view>
        <view class="flex_bwt">
          <view class="gray_line1">
            云小普承担车辆维修费用（不含轮胎、轮毂）中大于1500元的部分+三者保险额度20万+乘客保障2万等
          </view>
        </view>
        <view class="flex_bwt">
          <view class="gray_line1">车辆整备费</view>
          <view class="back_line">¥{{ order_info.vehicle_curb_fee }}</view>
        </view>
        <view class="flex_bwt" v-if="order_info.coupon_name">
          <view class="gray_line1">{{ order_info.coupon_name }}</view>
          <view class="back_line" style="color: #FF5700;">-¥{{ order_info.coupon_fee }}</view>
        </view>
        <view class="flex_bwt">
          <view class="gray_line1">押金合计(可退)</view>
          <view class="back_line" style="color: #FF5700;">¥{{ order_info.deposit_sum }}</view>
        </view>
        <view class="flex_bwt">
          <view class="gray_line1">订单总额</view>
          <view class="back_line" style="color: #FF5700;">¥{{ order_info.sum }}</view>
        </view>
      </view>
      <view style="margin-top: 20rpx; background-color: #FFFFFF;padding: 0;border-radius: 16rpx">
        <img src="https://taxi.raxan.xyz/wechat/static/images/7cb34ae8dda56294ebdfd165ff00879.png"
          style="height: 112rpx;width: 100%;" alt="">
        <view class="zcxu-box">
          <view class="flex_bwt zcxz-item" v-for="(item,index) in rentKnowledges">
            <view class="left bold">
              {{item.name}}
            </view>
            <view class="right flex">
              <view class="tips"> {{item.remark}}</view>
             <!-- <img style="width: 32rpx;height: 32rpx;"
                src="https://taxi.raxan.xyz/wechat/static/images/arrow-right_black.png" alt=""> -->
            </view>
          </view>
         <!-- <view class="flex_bwt zcxz-item">
            <view class="left bold">
              租赁中修改规则
            </view>
            <view class="right flex">
              <view class="tips">部分情况收取退改费</view>
              <img style="width: 32rpx;height: 32rpx;"
                src="https://taxi.raxan.xyz/wechat/static/images/arrow-right_black.png" alt="">
            </view>
          </view>
          <view class="flex_bwt zcxz-item">
            <view class="left bold">
              取车凭证
            </view>
            <view class="right flex">
              <view class="tips">两证，双免更便捷</view>
              <img style="width: 32rpx;height: 32rpx;"
                src="https://taxi.raxan.xyz/wechat/static/images/arrow-right_black.png" alt="">
            </view>
          </view>
          <view class="flex_bwt zcxz-item">
            <view class="left bold">
              押金支付
            </view>
            <view class="right flex">
              <view class="tips">免车辆押金，仅刷违章押金</view>
              <img style="width: 32rpx;height: 32rpx;"
                src="https://taxi.raxan.xyz/wechat/static/images/arrow-right_black.png" alt="">
            </view>
          </view>
          <view class="flex_bwt zcxz-item">
            <view class="left bold">
              发票
            </view>
            <view class="right flex">
              <view class="tips">可在“我的”开票申请</view>
              <img style="width: 32rpx;height: 32rpx;"
                src="https://taxi.raxan.xyz/wechat/static/images/arrow-right_black.png" alt="">
            </view>
          </view> -->
        </view>
      </view>
    </view>
    <view style="padding-bottom: 236rpx;">
      <view class="_flex-row-mid">
        <checkbox-group class="_w-max _mar-top-10 _mar-left-10" @change="checkboxChange">
          <label class="label-item _flex-row-mid">
            <checkbox :value="1" :checked="false"></checkbox>
            <text>我已阅读并同意</text>
            <navigator @click.stop="" :url='`/pages/car_sub/order/handler/contract?id=${7}`' style="color: #52A1EC;"
              v-text="'《租车服务合同》'"></navigator>
            <text>及</text>
            <navigator @click.stop="" :url='`/pages/car_sub/order/handler/contract?id=${8}`' style="color: #52A1EC;"
              v-text="'《服务协议》'"></navigator>
          </label>
        </checkbox-group>
      </view>
    </view>

    <view class="bottom_bar">
      <view class="tip">
        <image class="tip_logo" src="https://taxi.raxan.xyz/wechat/static/images/order_pay.png" />
        <view>支付成功后生成订单，取车前可免费取消，无惧计划有变！</view>
      </view>
      <view class="bar_content">
        <view class="bar_left">
          <view class="left_t">
            <view class="t_label">总价</view>
            <view class="total_price">¥{{ order_info.sum }}</view>

          </view>
          <view class="left_b">已优惠¥{{ order_info.coupon_fee }}</view>
        </view>
        <view class="bar_btn" @click="submit">
          <view class="go_pay">去支付</view>
          <view class="avg_day">日均 ¥{{ order_info.average_daily }}</view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
  import {
    carOrderDetail,
    rentKnowledge,
  } from '@/api/hire.js'
  import {
    getCarTypeInfo,
    getCareFee,
    payOrder
  } from '@/api/car.js';
  export default {
    data() {
      return {
        params: {},
        loading: false,
        recHeight: 0,
        orderTime: {},
        DateTimeSite: {},
        car_info: {},
        order_info: {},
        contact_id: 0,
        contact_name: '',
        contact_phone: '',
        remark: '',
        checkValue: '',
        car_type_id: '',
        is_submit: false,
        store_id: '',
        order_data: {
          fee: {}
        },
        rentKnowledges:[]
      }
    },
    onLoad(options) {

      this.params = JSON.parse(decodeURIComponent(options.params));
      this.car_type_id = this.params.id;
      this.store_id = this.params.store_id;
      this
      this.contact_id = this.params.contact_id,
        this.contact_name = this.params.contact_name,
        this.contact_phone = this.params.contact_phone;
      delete this.params.store_id
      this.DateTimeSite = JSON.parse(decodeURIComponent(options.timeset));
      this.orderTime = JSON.parse(decodeURIComponent(options.date));
      console.log(this.orderTime)
      this.getPhoneInfo();
      this.carOrderDetail();
      this.getCarTypeInfo();
      this.getCareFee();
      this.getRentKnowledge()
    },
    methods: {
      getRentKnowledge(){
        rentKnowledge().then(res=>{
          console.log(res,123123)
          this.rentKnowledges = res.data
        })
      },
      toRemark() {
        uni.navigateTo({
          url: `/pages/car_sub/order/remark?remark=${this.remark}`
        })
      },
      //车辆租金
      getCareFee() {
        const that = this;
        let area_site = that.DateTimeSite;
        let data = {
          store_id: that.store_id, //下单门店
          take_place_id: area_site.area_id, //取车服务点
          return_place_id: area_site.black_area_id, //还车服务点
          is_other_places: area_site.is_other_places, //是否异店还车
          type_id: that.car_type_id, //下单车型
          start_time: that.orderTime.starStamp, //开始时间
          end_time: that.orderTime.endStamp, //结束时间
          is_visit: area_site.is_visit, //是否上门送取车
          take_latitude: area_site.take_latitude,
          take_longitude: area_site.take_longitude,
          return_latitude: area_site.black_latitude,
          return_longitude: area_site.black_longitude,
        }
        getCareFee(data).then(res => {
          that.order_data.fee = res.data;
        }).catch((err) => {
          uni.showToast({
            title: err,
            icon: 'none'
          })
          setTimeout(() => {
            uni.navigateBack()
          }, 1000)
        })
      },
      wxplay(data, order_id) { //微信支付方法
        let that = this;
        uni.requestPayment({
          provider: 'wxpay',
          timeStamp: data.timestamp,
          nonceStr: data.nonceStr,
          package: data.package,
          signType: data.signType,
          paySign: data.paySign,
          success() {
            that.is_sumbit = false;
            setTimeout(() => {
              uni.showToast({
                title: '已提交订单',
                icon: "none"
              });
              uni.redirectTo({
                url: '/pages/car_sub/order/detail?order_id=' + order_id
              })
            }, 600)
          },
          fail(err) {
            that.is_sumbit = false;
            uni.showToast({
              title: '订单取消成功',
              icon: "none"
            });
          }
        })
      },
      pay({
        contact_id,
        order_id
      }) {
        let that = this;
        const remark = this.remark || '';
        const params = {
          order_id,
          pay_type: 'weixin',
          contact_id,
          remark
        };
        that.is_sumbit = true;
        uni.showLoading();
        payOrder(params).then(res => {
          uni.hideLoading()
          that.wxplay(res.data.result.jsConfig, order_id)
        }).catch(res => {
          uni.hideLoading()
          that.is_sumbit = false;
          uni.showToast({
            title: res,
            icon: "none"
          })
        }).finally(() => {
          that.is_sumbit = false;
        })
      },
      submit() {
        const that = this;
        if (that.is_sumbit) {
          return uni.showToast({
            title: '请求过于频繁，请稍后',
            icon: 'none'
          });
        }
        if (that.checkValue == '') return that.$util.Tips({
          title: '请勾选同意协议'
        })
        if (!that.contact_id) {
          return that.$util.Tips({
            title: '请选择承租人'
          })
        }
        that.params.contact_id = that.contact_id;
        const order_site = that.DateTimeSite;

        uni.showModal({
          title: '提示',
          content: '确定要提交订单吗？',
          success: function(res) {
            if (res.confirm) {
              //提交确认
              uni.showLoading();
              that.is_submit = true;
              that.pay({
                ...that.params,
                order_id: that.order_info.order_id
              })
            }
          }
        });
      },
      back() {
        uni.navigateBack()
      },
      checkboxChange(e) {
        this.checkValue = e.detail.value;
      },
      addUseUser() {
        const {
          contact_id,
          contact_name,
          contact_phone
        } = this;
        uni.navigateTo({
          url: '/pages/info_setting/common_tenant?contact_id=' + contact_id + '&contact_name=' + contact_name +
            '&contact_phone=' + contact_phone
        })
      },
      getPhoneInfo() {
        uni.getSystemInfo({
          success: (res) => {
            this.recHeight = res.statusBarHeight + 'px'; //获取手机状态栏高度
          }
        });
      },
      checkLoading(fn) {
        this.loading = true;
        uni.showLoading({
          title: '加载中'
        })
        fn().finally(() => {
          this.loading = false;
          uni.hideLoading()
        })
      },
      //车辆信息
      getCarTypeInfo() {
        var that = this;
        let data = {
          car_type_id: this.params.id
        }
        getCarTypeInfo(data).then(res => {
          that.car_info = res.data;
        }).catch(err => {
          uni.showToast({
            title: '数据错误',
            icon: 'none'
          })
        })
      },
      carOrderDetail() {
        this.checkLoading(
          () => carOrderDetail(this.params).then(res => {
            console.log(res.data)
            this.order_info = res.data;
          }).catch(err => {
            uni.showToast({
              title: err,
              icon: 'none',
              success: () => {
                setTimeout(() => {
                  this.back();
                }, 2000)
              }
            })

          })
        )
      },
    }
  }
</script>
<style lang="scss" scoped>
  .f_s_18 {
    font-size: 36rpx;
  }

  .other_text {
    position: absolute;
    width: 400rpx;
    background-color: #FFFFFF;
    z-index: 1;
    top: 0;
    bottom: 0;
    right: 56rpx;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .price {
    font-size: 24rpx;
    color: #FF5700;
  }

  .zcxu-box {
    // height: 92rpx;
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 0rpx 0rpx;
    padding: 32rpx;
  }

  .zcxz-item {
    height: 108rpx;
    background: #F3F3F3;
    align-items: center;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 0 32rpx;

    .bold {
      font-weight: bold;
      font-size: 28rpx;
      color: rgba(0, 0, 0, 0.9);
      flex-shrink: 0;
    }

    .right {
      align-items: center;

      .tips {
        font-size: 24rpx;
        color: rgba(0, 0, 0, 0.4);
        // margin-right: 5rpx;
        padding-left: 20rpx;
      }
    }
  }

  .date-item {
    width: 160rpx;
    height: 88rpx;
    background: #F8F9FC;
    border-radius: 8rpx 8rpx 8rpx 8rpx;
    margin-left: 15rpx;

    &:first-child {
      margin-left: 0;
    }

    .date-top {
      padding-top: 15rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 400;
      font-size: 24rpx;
      color: rgba(0, 0, 0, 0.9);
    }

    .price {
      font-size: 24rpx;
      color: #FF5700;
      width: 100%;
      text-align: center;
    }
  }

  .felx_c {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .table_label {
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 28rpx;
    color: rgba(0, 0, 0, 0.9);
    line-height: 44rpx;
  }

  .confirm_page {
    position: relative;
    z-index: 0;
    box-sizing: border-box;

    .top_bg {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      z-index: 0;
      height: 456rpx;
    }
  }

  .container {
    position: relative;
    z-index: 1;
    padding: 16rpx 32rpx 32rpx 32rpx;

    .desc {
      margin-bottom: 24rpx;

      .board {
        position: relative;
        z-index: 1;
        margin-top: -22rpx;
        background-color: #FFFFFF;
        border-radius: 16rpx;
        padding: 32rpx;
        padding-top: 44rpx;

        .row_1 {
          display: flex;
          gap: 24rpx;

          .thumb {
            width: 230rpx;
            height: 120rpx;
            flex: 0 0 230rpx;
          }

          .info {
            flex: 1;
            overflow: hidden;

            .name {
              margin: 8rpx 0;
              font-family: PingFang SC, PingFang SC;
              font-weight: 600;
              font-size: 40rpx;
              color: rgba(0, 0, 0, 0.9);
              line-height: 56rpx;
            }

            .params {
              font-family: PingFang SC, PingFang SC;
              font-weight: 400;
              font-size: 24rpx;
              color: rgba(0, 0, 0, 0.6);
              line-height: 40rpx;
            }
          }
        }

        .row_2 {
          display: flex;
          margin-top: 24rpx;
          margin-bottom: 18rpx;
          align-items: center;
          justify-content: flex-start;
          font-family: PingFang SC, PingFang SC;
          font-weight: 400;
          font-size: 32rpx;
          color: rgba(0, 0, 0, 0.9);
          height: 48rpx;

          .arrow-right {
            flex: 0 0 36rpx;
            width: 36rpx;
            height: 36rpx;
          }
        }

        .row_3 {
          .time_info {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 8rpx;

            .tag {
              padding: 0 8rpx;
              border-radius: 4rpx;
              border: 1rpx solid #008DFF;
              line-height: 40rpx;
              font-size: 24rpx;
              color: #008DFF;
            }

            .time {
              font-family: PingFang SC, PingFang SC;
              font-weight: 400;
              font-size: 28rpx;
              color: rgba(0, 0, 0, 0.6);
            }
          }

          .days {
            margin: 8rpx 0;
            line-height: 40rpx;
            padding: 0 10rpx;
            background: #F8F9FC;
            border-radius: 8rpx;
            color: #FF5700;
            font-size: 28rpx;
            display: inline-block;
          }
        }
      }
    }

    .sub_title {
      font-family: PingFang SC, PingFang SC;
      font-weight: 600;
      font-size: 32rpx;
      color: rgba(0, 0, 0, 0.9);
      line-height: 48rpx;
      margin-bottom: 24rpx;
    }

    .sub_title1 {
      font-family: PingFang SC, PingFang SC;
      font-weight: 600;
      font-size: 28rpx;
      color: rgba(0, 0, 0, 0.9);
      line-height: 44rpx;
      margin-bottom: 24rpx;
    }

    .flex_bwt {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24rpx;
    }

    .gray_line {
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 28rpx;
      color: rgba(0, 0, 0, 0.6);
      line-height: 44rpx;
    }

    .gray_line1 {
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 24rpx;
      color: rgba(0, 0, 0, 0.6);
      line-height: 40rpx;
    }

    .back_line {
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 24rpx;
      color: rgba(0, 0, 0, 0.9);
      line-height: 40rpx;
    }

    .table {
      background: #FFFFFF;
      border-radius: 16rpx;
      border: 2rpx solid #DCDCDC;

      .table_row:not(:last-child) {
        border-bottom: 2rpx solid #DCDCDC;
      }

      .table_col:not(:last-child) {
        border-right: 2rpx solid #DCDCDC;
      }

      .table_col:last-child {
        flex: 1;
      }

      .table_col:first-child {
        flex: 0 0 216rpx;
      }

      .table_row {
        display: flex;
        align-items: stretch;
      }

      .table_col {
        padding: 24rpx 20rpx;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .yajin {
      padding: 40rpx 32rpx 38rpx 32rpx;
      background: #FFFFFF;
      border-radius: 16rpx;
      margin-bottom: 24rpx;

      .weizhang {
        display: flex;
        justify-content: space-between;
        position: relative;
        flex: 1;
        margin-left: 4rpx;

        .line {
          position: absolute;
          border-bottom: 2rpx dashed #DCDCDC;
          margin-top: 70rpx;
          left: 56rpx;
          right: 86rpx;

          &::before {
            content: ' ';
            display: block;
            position: absolute;
            width: 6rpx;
            height: 6rpx;
            left: 0;
            background-color: #DCDCDC;
            top: -3rpx;
          }

          &::after {
            content: ' ';
            display: block;
            position: absolute;
            width: 6rpx;
            height: 6rpx;
            right: 0;
            background-color: #DCDCDC;
            top: -3rpx;
          }
        }

        .wz-item {
          .wz-title {
            line-height: 52rpx;
            background: #FFFFFF;
            border-radius: 1998rpx;
            border: 2rpx solid #E7E7E7;
            padding: 0 16rpx;
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 28rpx;
            color: rgba(0, 0, 0, 0.6);
            margin: 0 auto;
            margin-bottom: 20rpx;
          }

          .wz-content {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 28rpx;
            color: rgba(0, 0, 0, 0.9);
            margin: 0 auto;
            line-height: 44rpx;
            text-align: center;
          }
        }
      }
    }
  }

  .bottom_bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    .tip {
      line-height: 48rpx;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      background-color: #E6F3FF;
      font-weight: 400;
      font-size: 24rpx;
      color: #008DFF;
      padding-left: 32rpx;

      .tip_logo {
        flex: 0 0 32rpx;
        width: 32rpx;
        height: 32rpx;
      }
    }

    .bar_content {
      box-sizing: border-box;
      height: 168rpx;
      border-top: 1rpx solid #E7E7E7;
      background-color: #FFFFFF;
      padding: 32rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .bar_left {
        flex: 1;

        .left_t {
          display: flex;
          align-items: center;
          justify-content: flex-start;

          .t_label {
            font-weight: 400;
            font-size: 28rpx;
            color: rgba(0, 0, 0, 0.9);
            line-height: 44rpx;
            margin-right: 24rpx;
          }

          .total_price {
            font-weight: 600;
            font-size: 40rpx;
            color: #FF5700;
            line-height: 56rpx;
            margin-right: 24rpx;
          }

          .mingxi {
            font-weight: 400;
            font-size: 24rpx;
            color: rgba(0, 0, 0, 0.4);
            line-height: 40rpx;
          }

          .mx_logo {
            flex: 0 0 32rpx;
            width: 32rpx;
            height: 32rpx;
          }
        }

        .left_b {
          box-sizing: border-box;
          display: inline-block;
          line-height: 44rpx;
          background: #FFFFFF;
          border-radius: 1998rpx;
          border: 2rpx solid #FF5700;
          font-weight: 400;
          font-size: 24rpx;
          color: #FF5700;
          padding: 0 16rpx;
        }
      }

      .bar_btn {
        flex: 0 0 310rpx;
        text-align: center;
        width: 310rpx;
        font-size: 0;
        padding: 8rpx 0;
        background: #008DFF;
        border-radius: 12rpx;

        .go_pay {
          font-weight: 600;
          font-size: 32rpx;
          color: #FFFFFF;
          line-height: 48rpx;
        }

        .avg_day {
          font-weight: 600;
          font-size: 20rpx;
          color: #FFFFFF;
          line-height: 32rpx;
        }

      }
    }
  }
</style>